package com.velvetantler.weather.api

import com.velvetantler.weather.bean.BaseResponse
import com.velvetantler.weather.bean.LoginResponse
import com.velvetantler.weather.bean.LoginRequest
import com.velvetantler.weather.bean.UserInfoResponse
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiServices {
    @POST("login")
    suspend fun login(@Body user: LoginRequest): BaseResponse<LoginResponse>

    @GET("user-info")
    suspend fun getUserInfo(): BaseResponse<UserInfoResponse>
}